#!/usr/bin/env python
# encoding: utf-8

import json

json_file_path = 'E:/draftspace/temp.txt'

file = open(json_file_path, 'r', encoding='utf-8-sig')
# print(file)
load = json.load(file)

write_file = open(json_file_path, 'w', encoding='utf-8-sig')
dump = json.dump(load, write_file, separators=(':', ','), indent=4, sort_keys=True)

print(dump)

